Hi guys,
Project p = project "/NBT"
Item i
Module m
for i in p do
{
if (type(i) == "Formal")
{
ModName_ tar = module(fullName i)
ModuleVersion modver = moduleVersion(tar)
Module m = load(modver, false)
AttrDef ad
for ad in m do
{
if (isAccessInherited(ad) == false)
{
print fullName m "\n"
}
}
}
}
ManuelFelger - Mon Jul 27 06:52:33 EDT 2009 |
Re: How to use isAccessInherited ? string isAccessInherited{Def|Val}(Module m, AttrDef ad, bool &inherited) meaning that for checking attribute definitions you have two functions: isAccessInheritedDef and isAccessInheritedVal. The "Def" one is for checking access rights to the attribute definition and "Val" one for checking access to the attribute value. |
Re: How to use isAccessInherited ? SystemAdmin - Mon Jul 27 07:10:25 EDT 2009
Thank you! bool isInherited isAccessInheritedDef(m, ad, isInherited) |
Re: How to use isAccessInherited ? ManuelFelger - Mon Jul 27 08:53:01 EDT 2009
Thank you! bool isInherited isAccessInheritedDef(m, ad, isInherited) isAccessInheritedDef(m, ad, IsInherit) if (IsInherit) // IsInhertied else // Specific access |
Re: How to use isAccessInherited ? llandale - Mon Jul 27 14:04:28 EDT 2009 This is for your information. The recommendations I saw were very helpful. Thanks.
Item i
Project p = current
for i in p do
{
if(type(i) == "Formal")
{
bool(isInherit)
{
isAccessInherited(i, isInherit)
}
if(isInherit)
{
print "\t"name(i) " - It is inherited\n"
specific(i)
}
else
{
print "\t"name(i) " - It is specific\n"
}
}
else
{
print name(i) " is of type " type(i)"\n"
}
}
|